package entity

import "time"

type Users struct {
	Id int32
	Username string
	Password string `json:"omitempty"`
	Nickname string
	Sex string
	Avatar string
	CreateTime time.Time `json:"omitempty"`
	UpdateTime time.Time `json:"omitempty"`
}

func (Users) TableName() string {
	//绑定MYSQL表名为user
	return "users"
}